import request from '@/utils/request'

// 查询数据库同步列表
export function listDbsync(query) {
  return request({
    url: '/baseconfig/dbsync/list',
    method: 'get',
    params: query
  })
}

// 查询数据库同步详细
export function getDbsync(id) {
  return request({
    url: '/baseconfig/dbsync/' + id,
    method: 'get'
  })
}

// 新增数据库同步
export function addDbsync(data) {
  return request({
    url: '/baseconfig/dbsync',
    method: 'post',
    data: data
  })
}

// 修改数据库同步
export function updateDbsync(data) {
  return request({
    url: '/baseconfig/dbsync',
    method: 'put',
    data: data
  })
}

// 删除数据库同步
export function delDbsync(id) {
  return request({
    url: '/baseconfig/dbsync/' + id,
    method: 'delete'
  })
}

// 导出数据库同步
export function exportDbsync(query) {
  return request({
    url: '/baseconfig/dbsync/export',
    method: 'get',
    params: query
  })
}